package cn.shop.admin.req;

import cn.shop.transcation.promotionsModule.PrizeRule;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

@Data
public class AppRewardReq {

    /**
     * 活动内容
     */
    @NotNull(message = "请输入活动内容")
    private String content;
    /**
     * 奖池
     */
    @NotNull(message = "请输入奖池金额")
    @Min(value = 1, message = "奖池金额不能小于1")
    private BigDecimal prizePool;
    /**
     * 是否开启
     */
    @NotNull(message = "请设置活动状态")
    private Boolean enable;

    /**
     * 规则列表
     */
    @NotNull(message = "请配置活动规则")
    @NotEmpty(message = "请配置活动规则")
    private List<PrizeRule> prizeRules;

    private String key;

    private Long id;

}
